<template>
  <div id="app">
    <van-nav-bar title="youzan" >
      <template #left>
    <van-icon name="cross" size="23" color="#000" />
  </template>
  <template #right>
    <van-icon name="weapp-nav" size="18" color="#000" />
  </template>
</van-nav-bar>
    <router-view />
  </div>
</template>

<script>
import { Toast } from 'vant';
export default {
  name: 'App',
  methods: {
    onClickLeft() {
      Toast('返回');
    },
    onClickRight() {
      Toast('按钮');
    },
  },
}
</script>

<style>
#app {
  margin: 0;
  padding: 0;
}
</style>
